package com.mtgg.common.response;

/**
 * @Author: 亦善
 * @Date: 2020/5/13 11:32
 * @Describe: 
 */
public enum ResponseCode {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"ERROR"),
    PARAMETER_ERROR(412,"参数错误"),
    RESOURCES_ERROR(404,"资源不存在");

    private final int code;
    private final String desc;

    ResponseCode(int code,String desc){
        this.code=code;
        this.desc=desc;
    }
    public int getCode(){
        return  code;
    }
    public String getDesc(){
        return desc;
    }
}
